package com.ja.openchat.viewmodels;

import android.app.Application;

import androidx.annotation.NonNull;

import com.ja.openchat.ui.me.QrCodeFragment;

import me.goldze.mvvmhabit.base.BaseModel;
import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

public class ScanViewModel extends BaseViewModel {

    private final Application application;

    public ScanViewModel(@NonNull Application application, BaseModel mRepository) {
        super(application);
        this.application = application;
    }


    public BindingCommand my_qrcode_click = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            startContainerActivity(QrCodeFragment.class.getCanonicalName());
        }
    });


}
